package org.jeecg.modules.kuybCarTrain.mapper;

import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.kuybCarTrain.entity.KuybCarTrain;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: kuyb_car_train
 * @Author: jeecg-boot
 * @Date:   2021-09-15
 * @Version: V1.0
 */
public interface KuybCarTrainMapper extends BaseMapper<KuybCarTrain> {

    @Select("SELECT * FROM Kuyb_Car_Train WHERE instr(carName,#{brandname })>0 OR INSTR(#{brandname },carName)>0 ORDER BY carCode DESC limit 0,1" )
    KuybCarTrain getCarTrainByCarName(String brandname);
}
